package model

type UserAccount struct {
	Id                int64  `gorm:"column:id"`                  // 编号
	UserId            int64  `gorm:"column:user_id"`             // 用户id
	TotalAmount       string `gorm:"column:total_amount"`        // 账户总金额
	LockAmount        string `gorm:"column:lock_amount"`         // 锁定金额
	AvailableAmount   string `gorm:"column:available_amount"`    // 可用金额
	TotalIncomeAmount string `gorm:"column:total_income_amount"` // 总收入
	TotalPayAmount    string `gorm:"column:total_pay_amount"`    // 总支出
	CreateTime        string `gorm:"column:create_time"`         // 创建时间
	UpdateTime        string `gorm:"column:update_time"`
	IsDeleted         int64  `gorm:"column:is_deleted"`
}

func NewUserAccount() *UserAccount {
	return &UserAccount{}
}
func (*UserAccount) TableName() string {
	return "user_account"
}
